Skip to content

回复需要即时服务的投诉单

商户可通过调用此接口,针对需要即时服务的投诉单(need_immediate_service为true)提交内容回复用户。此接口支持使用新版消息格式(NormalMessage),可发送富文本、图片、按钮组等多种消息类型。

请求参数类型描述
complaint_idstring投诉单号
jsonobject声明请求的JSON数据结构
complainted_mchidstring被诉商户号
messageobject消息内容
blocksobject[]消息内容
typestring消息块类型
TEXT | IMAGE | LINK | FAQ_LIST | BUTTON | BUTTON_GROUP 枚举值之一
textobject文本
textstring文本
colorstring文本颜色
DEFAULT | SECONDARY 枚举值之一
is_boldboolean是否粗体
imageobject图片
media_idstring媒体ID
image_style_typestring图片样式类型
IMAGE_STYLE_TYPE_NARROW | IMAGE_STYLE_TYPE_WIDE 枚举值之一
linkobject链接
textstring文本
actionobject动作
action_typestring动作类型
ACTION_TYPE_SEND_MESSAGE | ACTION_TYPE_JUMP_URL | ACTION_TYPE_JUMP_MINI_PROGRAM 枚举值之一
jump_urlstring跳转链接
mini_program_jump_infoobject跳转小程序信息
appidstring跳转小程序APPID
pathstring跳转小程序页面PATH
textstring跳转小程序页面名称
message_infoobject回复消息内容
contentstring回复的消息内容
custom_datastring自定义透传字段
action_idstring动作id
invalid_infoobject失效配置
expired_timestring过期时间
multi_clickableboolean是否可以多次点击
faq_listobjectFAQ列表
faqsobject[]FAQ列表
faq_idstringfaq的id
faq_titlestringfaq内容
actionobject动作
action_typestring动作类型
ACTION_TYPE_SEND_MESSAGE | ACTION_TYPE_JUMP_URL | ACTION_TYPE_JUMP_MINI_PROGRAM 枚举值之一
jump_urlstring跳转链接
mini_program_jump_infoobject跳转小程序信息
appidstring跳转小程序APPID
pathstring跳转小程序页面PATH
textstring跳转小程序页面名称
message_infoobject回复消息内容
contentstring回复的消息内容
custom_datastring自定义透传字段
action_idstring动作id
buttonobject按钮
textstring文本
actionobject动作
action_typestring动作类型
ACTION_TYPE_SEND_MESSAGE | ACTION_TYPE_JUMP_URL | ACTION_TYPE_JUMP_MINI_PROGRAM 枚举值之一
jump_urlstring跳转链接
mini_program_jump_infoobject跳转小程序信息
appidstring跳转小程序APPID
pathstring跳转小程序页面PATH
textstring跳转小程序页面名称
message_infoobject回复消息内容
contentstring回复的消息内容
custom_datastring自定义透传字段
action_idstring动作id
invalid_infoobject失效配置
expired_timestring过期时间
multi_clickableboolean是否可以多次点击
button_groupobject按钮组
buttonsobject[]按钮组
textstring文本
actionobject动作
action_typestring动作类型
ACTION_TYPE_SEND_MESSAGE | ACTION_TYPE_JUMP_URL | ACTION_TYPE_JUMP_MINI_PROGRAM 枚举值之一
jump_urlstring跳转链接
mini_program_jump_infoobject跳转小程序信息
appidstring跳转小程序APPID
pathstring跳转小程序页面PATH
textstring跳转小程序页面名称
message_infoobject回复消息内容
contentstring回复的消息内容
custom_datastring自定义透传字段
action_idstring动作id
invalid_infoobject失效配置
expired_timestring过期时间
multi_clickableboolean是否可以多次点击
button_layoutstring按钮布局方式
LAYOUT_UNKNOWN | LAYOUT_HORIZONTAL | LAYOUT_VERTICAL 枚举值之一
invalid_infoobject失效配置
expired_timestring过期时间
multi_clickableboolean是否可以多次点击
sender_identitystring发送者身份类别
UNKNOWN | MANUAL | MACHINE 枚举值之一
custom_datastring自定义透传信息
idempotent_idstring幂等ID
php
$instance->v3->merchantService->complaintsV2->_complaint_id_->responseImmediateService->postAsync([
  'complaint_id' => '200201820200101080076610000',
  'json' => [
    'complainted_mchid' => '1900012181',
    'message'           => [
      'blocks'          => [[
        'type'         => 'TEXT',
        'text'         => [
          'text'    => 'example_text',
          'color'   => 'DEFAULT',
          'is_bold' => true,
        ],
        'image'        => [
          'media_id'         => 'example_media_id',
          'image_style_type' => 'IMAGE_STYLE_TYPE_NARROW',
        ],
        'link'         => [
          'text'         => 'example_text',
          'action'       => [
            'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
            'jump_url'               => 'example_jump_url',
            'mini_program_jump_info' => [
              'appid' => 'example_appid',
              'path'  => 'example_path',
              'text'  => 'example_text',
            ],
            'message_info'           => [
              'content'     => 'example_content',
              'custom_data' => 'example_custom_data',
            ],
            'action_id'              => 'example_action_id',
          ],
          'invalid_info' => [
            'expired_time'    => '2015-05-20T13:29:35+08:00',
            'multi_clickable' => true,
          ],
        ],
        'faq_list'     => [
          'faqs' => [[
            'faq_id'    => 'example_faq_id',
            'faq_title' => 'example_faq_title',
            'action'    => [
              'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
              'jump_url'               => 'example_jump_url',
              'mini_program_jump_info' => [
                'appid' => 'example_appid',
                'path'  => 'example_path',
                'text'  => 'example_text',
              ],
              'message_info'           => [
                'content'     => 'example_content',
                'custom_data' => 'example_custom_data',
              ],
              'action_id'              => 'example_action_id',
            ],
          ],],
        ],
        'button'       => [
          'text'         => 'example_text',
          'action'       => [
            'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
            'jump_url'               => 'example_jump_url',
            'mini_program_jump_info' => [
              'appid' => 'example_appid',
              'path'  => 'example_path',
              'text'  => 'example_text',
            ],
            'message_info'           => [
              'content'     => 'example_content',
              'custom_data' => 'example_custom_data',
            ],
            'action_id'              => 'example_action_id',
          ],
          'invalid_info' => [
            'expired_time'    => '2015-05-20T13:29:35+08:00',
            'multi_clickable' => true,
          ],
        ],
        'button_group' => [
          'buttons'       => [[
            'text'         => 'example_text',
            'action'       => [
              'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
              'jump_url'               => 'example_jump_url',
              'mini_program_jump_info' => [
                'appid' => 'example_appid',
                'path'  => 'example_path',
                'text'  => 'example_text',
              ],
              'message_info'           => [
                'content'     => 'example_content',
                'custom_data' => 'example_custom_data',
              ],
              'action_id'              => 'example_action_id',
            ],
            'invalid_info' => [
              'expired_time'    => '2015-05-20T13:29:35+08:00',
              'multi_clickable' => true,
            ],
          ],],
          'button_layout' => 'LAYOUT_HORIZONTAL',
          'invalid_info'  => [
            'expired_time'    => '2015-05-20T13:29:35+08:00',
            'multi_clickable' => true,
          ],
        ],
      ],],
      'sender_identity' => 'UNKNOWN',
      'custom_data'     => 'example_custom_data',
    ],
    'idempotent_id'     => '550e8400-e29b-41d4-a716-446655440000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/merchant-service/complaints-v2/{complaint_id}/response-immediate-service')->postAsync([
  'complaint_id' => '200201820200101080076610000',
  'json' => [
    'complainted_mchid' => '1900012181',
    'message'           => [
      'blocks'          => [[
        'type'         => 'TEXT',
        'text'         => [
          'text'    => 'example_text',
          'color'   => 'DEFAULT',
          'is_bold' => true,
        ],
        'image'        => [
          'media_id'         => 'example_media_id',
          'image_style_type' => 'IMAGE_STYLE_TYPE_NARROW',
        ],
        'link'         => [
          'text'         => 'example_text',
          'action'       => [
            'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
            'jump_url'               => 'example_jump_url',
            'mini_program_jump_info' => [
              'appid' => 'example_appid',
              'path'  => 'example_path',
              'text'  => 'example_text',
            ],
            'message_info'           => [
              'content'     => 'example_content',
              'custom_data' => 'example_custom_data',
            ],
            'action_id'              => 'example_action_id',
          ],
          'invalid_info' => [
            'expired_time'    => '2015-05-20T13:29:35+08:00',
            'multi_clickable' => true,
          ],
        ],
        'faq_list'     => [
          'faqs' => [[
            'faq_id'    => 'example_faq_id',
            'faq_title' => 'example_faq_title',
            'action'    => [
              'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
              'jump_url'               => 'example_jump_url',
              'mini_program_jump_info' => [
                'appid' => 'example_appid',
                'path'  => 'example_path',
                'text'  => 'example_text',
              ],
              'message_info'           => [
                'content'     => 'example_content',
                'custom_data' => 'example_custom_data',
              ],
              'action_id'              => 'example_action_id',
            ],
          ],],
        ],
        'button'       => [
          'text'         => 'example_text',
          'action'       => [
            'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
            'jump_url'               => 'example_jump_url',
            'mini_program_jump_info' => [
              'appid' => 'example_appid',
              'path'  => 'example_path',
              'text'  => 'example_text',
            ],
            'message_info'           => [
              'content'     => 'example_content',
              'custom_data' => 'example_custom_data',
            ],
            'action_id'              => 'example_action_id',
          ],
          'invalid_info' => [
            'expired_time'    => '2015-05-20T13:29:35+08:00',
            'multi_clickable' => true,
          ],
        ],
        'button_group' => [
          'buttons'       => [[
            'text'         => 'example_text',
            'action'       => [
              'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
              'jump_url'               => 'example_jump_url',
              'mini_program_jump_info' => [
                'appid' => 'example_appid',
                'path'  => 'example_path',
                'text'  => 'example_text',
              ],
              'message_info'           => [
                'content'     => 'example_content',
                'custom_data' => 'example_custom_data',
              ],
              'action_id'              => 'example_action_id',
            ],
            'invalid_info' => [
              'expired_time'    => '2015-05-20T13:29:35+08:00',
              'multi_clickable' => true,
            ],
          ],],
          'button_layout' => 'LAYOUT_HORIZONTAL',
          'invalid_info'  => [
            'expired_time'    => '2015-05-20T13:29:35+08:00',
            'multi_clickable' => true,
          ],
        ],
      ],],
      'sender_identity' => 'UNKNOWN',
      'custom_data'     => 'example_custom_data',
    ],
    'idempotent_id'     => '550e8400-e29b-41d4-a716-446655440000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/merchant-service/complaints-v2/{complaint_id}/response-immediate-service']->postAsync([
  'complaint_id' => '200201820200101080076610000',
  'json' => [
    'complainted_mchid' => '1900012181',
    'message'           => [
      'blocks'          => [[
        'type'         => 'TEXT',
        'text'         => [
          'text'    => 'example_text',
          'color'   => 'DEFAULT',
          'is_bold' => true,
        ],
        'image'        => [
          'media_id'         => 'example_media_id',
          'image_style_type' => 'IMAGE_STYLE_TYPE_NARROW',
        ],
        'link'         => [
          'text'         => 'example_text',
          'action'       => [
            'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
            'jump_url'               => 'example_jump_url',
            'mini_program_jump_info' => [
              'appid' => 'example_appid',
              'path'  => 'example_path',
              'text'  => 'example_text',
            ],
            'message_info'           => [
              'content'     => 'example_content',
              'custom_data' => 'example_custom_data',
            ],
            'action_id'              => 'example_action_id',
          ],
          'invalid_info' => [
            'expired_time'    => '2015-05-20T13:29:35+08:00',
            'multi_clickable' => true,
          ],
        ],
        'faq_list'     => [
          'faqs' => [[
            'faq_id'    => 'example_faq_id',
            'faq_title' => 'example_faq_title',
            'action'    => [
              'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
              'jump_url'               => 'example_jump_url',
              'mini_program_jump_info' => [
                'appid' => 'example_appid',
                'path'  => 'example_path',
                'text'  => 'example_text',
              ],
              'message_info'           => [
                'content'     => 'example_content',
                'custom_data' => 'example_custom_data',
              ],
              'action_id'              => 'example_action_id',
            ],
          ],],
        ],
        'button'       => [
          'text'         => 'example_text',
          'action'       => [
            'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
            'jump_url'               => 'example_jump_url',
            'mini_program_jump_info' => [
              'appid' => 'example_appid',
              'path'  => 'example_path',
              'text'  => 'example_text',
            ],
            'message_info'           => [
              'content'     => 'example_content',
              'custom_data' => 'example_custom_data',
            ],
            'action_id'              => 'example_action_id',
          ],
          'invalid_info' => [
            'expired_time'    => '2015-05-20T13:29:35+08:00',
            'multi_clickable' => true,
          ],
        ],
        'button_group' => [
          'buttons'       => [[
            'text'         => 'example_text',
            'action'       => [
              'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
              'jump_url'               => 'example_jump_url',
              'mini_program_jump_info' => [
                'appid' => 'example_appid',
                'path'  => 'example_path',
                'text'  => 'example_text',
              ],
              'message_info'           => [
                'content'     => 'example_content',
                'custom_data' => 'example_custom_data',
              ],
              'action_id'              => 'example_action_id',
            ],
            'invalid_info' => [
              'expired_time'    => '2015-05-20T13:29:35+08:00',
              'multi_clickable' => true,
            ],
          ],],
          'button_layout' => 'LAYOUT_HORIZONTAL',
          'invalid_info'  => [
            'expired_time'    => '2015-05-20T13:29:35+08:00',
            'multi_clickable' => true,
          ],
        ],
      ],],
      'sender_identity' => 'UNKNOWN',
      'custom_data'     => 'example_custom_data',
    ],
    'idempotent_id'     => '550e8400-e29b-41d4-a716-446655440000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->merchantService->complaintsV2->_complaint_id_->responseImmediateService->post([
  'complaint_id' => '200201820200101080076610000',
  'json' => [
    'complainted_mchid' => '1900012181',
    'message'           => [
      'blocks'          => [[
        'type'         => 'TEXT',
        'text'         => [
          'text'    => 'example_text',
          'color'   => 'DEFAULT',
          'is_bold' => true,
        ],
        'image'        => [
          'media_id'         => 'example_media_id',
          'image_style_type' => 'IMAGE_STYLE_TYPE_NARROW',
        ],
        'link'         => [
          'text'         => 'example_text',
          'action'       => [
            'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
            'jump_url'               => 'example_jump_url',
            'mini_program_jump_info' => [
              'appid' => 'example_appid',
              'path'  => 'example_path',
              'text'  => 'example_text',
            ],
            'message_info'           => [
              'content'     => 'example_content',
              'custom_data' => 'example_custom_data',
            ],
            'action_id'              => 'example_action_id',
          ],
          'invalid_info' => [
            'expired_time'    => '2015-05-20T13:29:35+08:00',
            'multi_clickable' => true,
          ],
        ],
        'faq_list'     => [
          'faqs' => [[
            'faq_id'    => 'example_faq_id',
            'faq_title' => 'example_faq_title',
            'action'    => [
              'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
              'jump_url'               => 'example_jump_url',
              'mini_program_jump_info' => [
                'appid' => 'example_appid',
                'path'  => 'example_path',
                'text'  => 'example_text',
              ],
              'message_info'           => [
                'content'     => 'example_content',
                'custom_data' => 'example_custom_data',
              ],
              'action_id'              => 'example_action_id',
            ],
          ],],
        ],
        'button'       => [
          'text'         => 'example_text',
          'action'       => [
            'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
            'jump_url'               => 'example_jump_url',
            'mini_program_jump_info' => [
              'appid' => 'example_appid',
              'path'  => 'example_path',
              'text'  => 'example_text',
            ],
            'message_info'           => [
              'content'     => 'example_content',
              'custom_data' => 'example_custom_data',
            ],
            'action_id'              => 'example_action_id',
          ],
          'invalid_info' => [
            'expired_time'    => '2015-05-20T13:29:35+08:00',
            'multi_clickable' => true,
          ],
        ],
        'button_group' => [
          'buttons'       => [[
            'text'         => 'example_text',
            'action'       => [
              'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
              'jump_url'               => 'example_jump_url',
              'mini_program_jump_info' => [
                'appid' => 'example_appid',
                'path'  => 'example_path',
                'text'  => 'example_text',
              ],
              'message_info'           => [
                'content'     => 'example_content',
                'custom_data' => 'example_custom_data',
              ],
              'action_id'              => 'example_action_id',
            ],
            'invalid_info' => [
              'expired_time'    => '2015-05-20T13:29:35+08:00',
              'multi_clickable' => true,
            ],
          ],],
          'button_layout' => 'LAYOUT_HORIZONTAL',
          'invalid_info'  => [
            'expired_time'    => '2015-05-20T13:29:35+08:00',
            'multi_clickable' => true,
          ],
        ],
      ],],
      'sender_identity' => 'UNKNOWN',
      'custom_data'     => 'example_custom_data',
    ],
    'idempotent_id'     => '550e8400-e29b-41d4-a716-446655440000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/merchant-service/complaints-v2/{complaint_id}/response-immediate-service')->post([
  'complaint_id' => '200201820200101080076610000',
  'json' => [
    'complainted_mchid' => '1900012181',
    'message'           => [
      'blocks'          => [[
        'type'         => 'TEXT',
        'text'         => [
          'text'    => 'example_text',
          'color'   => 'DEFAULT',
          'is_bold' => true,
        ],
        'image'        => [
          'media_id'         => 'example_media_id',
          'image_style_type' => 'IMAGE_STYLE_TYPE_NARROW',
        ],
        'link'         => [
          'text'         => 'example_text',
          'action'       => [
            'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
            'jump_url'               => 'example_jump_url',
            'mini_program_jump_info' => [
              'appid' => 'example_appid',
              'path'  => 'example_path',
              'text'  => 'example_text',
            ],
            'message_info'           => [
              'content'     => 'example_content',
              'custom_data' => 'example_custom_data',
            ],
            'action_id'              => 'example_action_id',
          ],
          'invalid_info' => [
            'expired_time'    => '2015-05-20T13:29:35+08:00',
            'multi_clickable' => true,
          ],
        ],
        'faq_list'     => [
          'faqs' => [[
            'faq_id'    => 'example_faq_id',
            'faq_title' => 'example_faq_title',
            'action'    => [
              'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
              'jump_url'               => 'example_jump_url',
              'mini_program_jump_info' => [
                'appid' => 'example_appid',
                'path'  => 'example_path',
                'text'  => 'example_text',
              ],
              'message_info'           => [
                'content'     => 'example_content',
                'custom_data' => 'example_custom_data',
              ],
              'action_id'              => 'example_action_id',
            ],
          ],],
        ],
        'button'       => [
          'text'         => 'example_text',
          'action'       => [
            'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
            'jump_url'               => 'example_jump_url',
            'mini_program_jump_info' => [
              'appid' => 'example_appid',
              'path'  => 'example_path',
              'text'  => 'example_text',
            ],
            'message_info'           => [
              'content'     => 'example_content',
              'custom_data' => 'example_custom_data',
            ],
            'action_id'              => 'example_action_id',
          ],
          'invalid_info' => [
            'expired_time'    => '2015-05-20T13:29:35+08:00',
            'multi_clickable' => true,
          ],
        ],
        'button_group' => [
          'buttons'       => [[
            'text'         => 'example_text',
            'action'       => [
              'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
              'jump_url'               => 'example_jump_url',
              'mini_program_jump_info' => [
                'appid' => 'example_appid',
                'path'  => 'example_path',
                'text'  => 'example_text',
              ],
              'message_info'           => [
                'content'     => 'example_content',
                'custom_data' => 'example_custom_data',
              ],
              'action_id'              => 'example_action_id',
            ],
            'invalid_info' => [
              'expired_time'    => '2015-05-20T13:29:35+08:00',
              'multi_clickable' => true,
            ],
          ],],
          'button_layout' => 'LAYOUT_HORIZONTAL',
          'invalid_info'  => [
            'expired_time'    => '2015-05-20T13:29:35+08:00',
            'multi_clickable' => true,
          ],
        ],
      ],],
      'sender_identity' => 'UNKNOWN',
      'custom_data'     => 'example_custom_data',
    ],
    'idempotent_id'     => '550e8400-e29b-41d4-a716-446655440000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/merchant-service/complaints-v2/{complaint_id}/response-immediate-service']->post([
  'complaint_id' => '200201820200101080076610000',
  'json' => [
    'complainted_mchid' => '1900012181',
    'message'           => [
      'blocks'          => [[
        'type'         => 'TEXT',
        'text'         => [
          'text'    => 'example_text',
          'color'   => 'DEFAULT',
          'is_bold' => true,
        ],
        'image'        => [
          'media_id'         => 'example_media_id',
          'image_style_type' => 'IMAGE_STYLE_TYPE_NARROW',
        ],
        'link'         => [
          'text'         => 'example_text',
          'action'       => [
            'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
            'jump_url'               => 'example_jump_url',
            'mini_program_jump_info' => [
              'appid' => 'example_appid',
              'path'  => 'example_path',
              'text'  => 'example_text',
            ],
            'message_info'           => [
              'content'     => 'example_content',
              'custom_data' => 'example_custom_data',
            ],
            'action_id'              => 'example_action_id',
          ],
          'invalid_info' => [
            'expired_time'    => '2015-05-20T13:29:35+08:00',
            'multi_clickable' => true,
          ],
        ],
        'faq_list'     => [
          'faqs' => [[
            'faq_id'    => 'example_faq_id',
            'faq_title' => 'example_faq_title',
            'action'    => [
              'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
              'jump_url'               => 'example_jump_url',
              'mini_program_jump_info' => [
                'appid' => 'example_appid',
                'path'  => 'example_path',
                'text'  => 'example_text',
              ],
              'message_info'           => [
                'content'     => 'example_content',
                'custom_data' => 'example_custom_data',
              ],
              'action_id'              => 'example_action_id',
            ],
          ],],
        ],
        'button'       => [
          'text'         => 'example_text',
          'action'       => [
            'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
            'jump_url'               => 'example_jump_url',
            'mini_program_jump_info' => [
              'appid' => 'example_appid',
              'path'  => 'example_path',
              'text'  => 'example_text',
            ],
            'message_info'           => [
              'content'     => 'example_content',
              'custom_data' => 'example_custom_data',
            ],
            'action_id'              => 'example_action_id',
          ],
          'invalid_info' => [
            'expired_time'    => '2015-05-20T13:29:35+08:00',
            'multi_clickable' => true,
          ],
        ],
        'button_group' => [
          'buttons'       => [[
            'text'         => 'example_text',
            'action'       => [
              'action_type'            => 'ACTION_TYPE_SEND_MESSAGE',
              'jump_url'               => 'example_jump_url',
              'mini_program_jump_info' => [
                'appid' => 'example_appid',
                'path'  => 'example_path',
                'text'  => 'example_text',
              ],
              'message_info'           => [
                'content'     => 'example_content',
                'custom_data' => 'example_custom_data',
              ],
              'action_id'              => 'example_action_id',
            ],
            'invalid_info' => [
              'expired_time'    => '2015-05-20T13:29:35+08:00',
              'multi_clickable' => true,
            ],
          ],],
          'button_layout' => 'LAYOUT_HORIZONTAL',
          'invalid_info'  => [
            'expired_time'    => '2015-05-20T13:29:35+08:00',
            'multi_clickable' => true,
          ],
        ],
      ],],
      'sender_identity' => 'UNKNOWN',
      'custom_data'     => 'example_custom_data',
    ],
    'idempotent_id'     => '550e8400-e29b-41d4-a716-446655440000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
log_idstring操作流水号

参阅 官方文档 官方文档

Published on the GitHub by TheNorthMemory